package com.cndw.kungfu.model.siege.domain;

import java.util.List;

/**
 * 玩家得到的奖励
 * 
 * @author <a href="mailto:whz-work@163.com">汪洪州</a>
 * 
 * @since 1.0 Create on 2012-3-10
 */
public class SiegePlayerAwards {

	private int exp;
	private int asset;
	private int resource;
	private List<Object[]> goods;
	private boolean get; // 是否领取奖励

	public int getExp() {
		return exp;
	}

	public void setExp(int exp) {
		this.exp = exp;
	}

	public void alterExp(int exp) {
		this.exp += exp;
	}

	public int getAsset() {
		return asset;
	}

	public void setAsset(int asset) {
		this.asset = asset;
	}

	public void alterAsset(int asset) {
		this.asset += asset;
	}

	public int getResource() {
		return resource;
	}

	public void setResource(int resource) {
		this.resource = resource;
	}

	public void alterResource(int resource) {
		this.resource += resource;
	}

	public List<Object[]> getGoods() {
		return goods;
	}

	public void setGoods(List<Object[]> goods) {
		this.goods = goods;
	}

	public boolean isGet() {
		return get;
	}

	public void setGet(boolean get) {
		this.get = get;
	}

	/**
	 * 检查是否已领取
	 * 
	 * @return
	 */
	public synchronized boolean checkGet() {
		if (isGet()) {
			return true;
		} else {
			setGet(true);
			return false;
		}
	}
}
